import request from '@/utils/request'

// 查询菜谱列表
export function listMenus(query) {
  return request({
    url: '/tenant/menus/list',
    method: 'get',
    params: query
  })
}

// 查询菜谱详细
export function getMenus(menusId) {
  return request({
    url: '/tenant/menus/' + menusId,
    method: 'get'
  })
}

// 新增菜谱
export function addMenus(data) {
  return request({
    url: '/tenant/menus',
    method: 'post',
    data: data
  })
}

// 修改菜谱
export function updateMenus(data) {
  return request({
    url: '/tenant/menus',
    method: 'put',
    data: data
  })
}

// 删除菜谱
export function delMenus(menusId) {
  return request({
    url: '/tenant/menus/' + menusId,
    method: 'delete'
  })
}
